package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.RepayStatusResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.PullOperatorInfo;
import com.cash.channel.svc.util.ServiceUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service("pullOperatorInfo")
public class CJH000016 implements BaseApi {


    @Override
    public ApiResponseModel doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        PullOperatorInfo pullOperatorInfo = ServiceUtils.getBean(apiRequestModel.getInterfaceType() + Constant.SERVICE.拉取运营商数据, PullOperatorInfo.class);
        return pullOperatorInfo.doRepayDetail(apiRequestModel);
    }
}
